package dataStructureAlgorithms.linkList;

/**
 * @Description: TODO
 * @Author: wzj
 * @Date: 2019/10/9 8:08
 */
public class SingleLinkList {

    public static void main(String[] args) {
        Node n1=new Node(1);
        Node n2=new Node(2);
        Node n3=new Node(3);
        Node n4=new Node(4);
        Node n5=new Node(5);
        n5.insert(n4);
        n1.insert(n2);
        n1.insert(n3);
        n1.insert(n5);
        n1.traverse();

    }
}
